package com.server.questionbank.snframe.config.ollama;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.Set;

@Configuration
@Data
public class KnowledgeBaseConfig {
    @Value("${knowledgeBase.geDataTop}")
    private int geDataTop;
    @Value("${knowledgeBase.updateTime}")
    private int updateTime;
    @Value("${knowledgeBase.updateInterval}")
    private int updateInterval;
    @Value("${knowledgeBase.filePath}")
    private String filePath;
    @Value("#{'${knowledgeBase.supportedExtensions}'.split('\\s*,\\s*')}")
    private Set<String> supportedExtensions;
    @Value("${knowledgeBase.chunkSize}")
    private int chunkSize;
    @Value("${knowledgeBase.similarityThreshold}")
    private float similarityThreshold;
}
